package com.quan.auth.feign;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import com.quan.common.base.bean.ResultBean;

@Component
public class UpmsUserServiceFallback implements UpmsUserService {

	/**
	 * 远程调用失败，将会回调该方法
	 * @param account 账号
	 * @return 自定义返回信息
	 */
	@Override
	public Object findByAccount(@RequestParam(value = "account")String account) {
		return ResultBean.failure("根据账号查找用户失败");
	}
	
}
